using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Test加载 : MonoBehaviour
{

    public Image img;
    public void TestS1()
    {
        Sprite s = BResources.Load<Sprite>("Image/img1");
        img.sprite = s;
    }
    public Transform 节点;
    public void TestP1()
    {
        GameObject s = BResources.Load<GameObject>("Image/p1");
        var p = Instantiate(s);
        p.transform.SetParent(节点,false);
    }
    public void TestP2()
    {
        GameObject s = BResources.Load<GameObject>("Image/p2");
        var p = Instantiate(s);
        p.transform.SetParent(节点,false);
    }
    
    public void TestP3()
    {
        GameObject s = BResources.Load<GameObject>("Image/p3");
        var p = Instantiate(s);
        p.transform.SetParent(节点,false);
    }
    
    public void TestP4()
    {
        GameObject s = BResources.Load<GameObject>("Image/p4");
        var p = Instantiate(s);
        p.transform.SetParent(节点,false);
    }
}
